package com.example.service.impl;

import com.example.mapper.StudentHomePageMapper;
import com.example.pojo.LoginMsg;
import com.example.pojo.Student;
import com.example.service.StudentHomePageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class StudentHomePageImpl implements StudentHomePageService {

    @Autowired
    private StudentHomePageMapper studentHomePageMapper;
    @Override
    public List<Student> homePage(LoginMsg loginMsg) {
          return studentHomePageMapper.studentHomePage(loginMsg);
    }
    @Override
    public List<Student> select(String username, String subjectName,String semester) {
        return studentHomePageMapper.select(username, subjectName,semester);
    }
}
